package club.msecret.mblog.entity;

import lombok.Data;
import tk.mybatis.mapper.annotation.KeySql;
import javax.persistence.*;;
import java.io.Serializable;

/**
 * @Description  
 * @Author  
 * @Date 2020-11-09 
 */

@Entity
@Data
@Table ( name ="tagsofarticle" )
public class TagOfArticle implements Serializable {

	private static final long serialVersionUID =  1L;

    @Id
    @KeySql(useGeneratedKeys = true)
   	@Column(name = "id" )
	private Long id;

   	@Column(name = "tagId" )
	private Long tagId;

   	@Column(name = "articleId" )
	private Long articleId;

	public TagOfArticle(Long tagId, Long articleId) {
		this.tagId = tagId;
		this.articleId = articleId;
	}
}
